#ifndef REGISTERVIEW_H
#define REGISTERVIEW_H
#include "libs/base/service/request.h"
#include <QFrame>

namespace Ui {
class RegisterView;
}

class RegisterView : public QFrame
{
    Q_OBJECT

public:
    explicit RegisterView(QWidget* parent = nullptr);

signals:
    void cancelRequested();
    void loginRequested(const QString& name);

private:
    void onResponse(const yc::Request& request, const yc::Response& response);
    void updateUiStatus(bool busy);
    void updateButtonStatus();

    Ui::RegisterView* ui;
};

#endif // REGISTERVIEW_H
